<?php
	class acl{
		
		function test()
		{
		
		
		    $CI =& get_instance();
        	//echo $CI->uri->uri_string();
			echo $CI->router->class;
		
			

		}
		
		function check_auth()
		{
			$CI =& get_instance();
			
			$CI->load->library(array('session','auth_lib'));
			$CI->load->helper('url');
			$user_ses = $CI->session->userdata('userlogindetails');
			$CI->auth_lib->test();
			if(!isset($user_ses['user_id'])){
				
				// header('Location:'.base_url());
			//	echo base_url();
			//	redirect(base_url());	
		}
			
		}
	}
?>